import Layout from '@/module-dashboard/pages/layout'
const _import = require('@/router/import_' + process.env.NODE_ENV)

export default [
  {
    path: '/component',
    component: Layout,
    redirect: 'noredirect',
    name: '配件管理',
    meta: {
      title: '配件管理',
      icon: 'parts'
    },
    children: [
      {
        path: 'componentType-list',
        component: _import('parts/pages/componentType-list'),
        name: '配件分类',
        meta: {
          title: '配件分类'
        }
      },
      {
        path: 'componentType-list-child',
        component: _import('parts/pages/componentType-list-child'),
        name: '子分类',
        hidden: true,
        meta: {
          title: '子分类'
        }
      },
      {
        path: 'component-list',
        component: _import('parts/pages/component-list'),
        name: '配件目录',
        meta: {
          title: '配件目录'
        }
      },
      {
        path: 'componentBrand-list',
        component: _import('parts/pages/componentBrand-list'),
        name: '配件品牌',
        meta: {
          title: '配件品牌'
        }
      }
    ]
  }
]
